import request from '@/plugin/axios'

export function AccountLogin (data) {
  return request({
    url: '/login',
    method: 'post',
    data
  })
}

export function getUserList (data) {
  return request({
    url: '/user/list',
    method: 'get',
    params: data
  })
}
export function userSR (data, params) {
  return request({
    url: '/user/saveOrUpdate',
    method: 'post',
    data,
    params: params
  })
}

export function pwd (data) {
  return request({
    url: '/user/pwd',
    method: 'post',
    data
  })
}

export function del (data) {
  return request({
    url: '/user/remove',
    method: 'post',
    params: data
  })
}
